﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SM2TestRunner
{
    public class TestCase : TestStep
    {
        private List<TestStep> listTestAction = new List<TestStep>();

        public void addTestStep(TestStep taItem)
        {
            this.listTestAction.Add(taItem);
        }

        public TestStep getTestStep()
        {
            TestStep teststepItem = null;
            if (listTestAction.Count > 0)
            {
                teststepItem = this.listTestAction.First();
                if (teststepItem != null)
                    this.listTestAction.Remove(teststepItem);
            }
            return teststepItem;
        }
    }
}
